function bits_per_symbol = get_bits_per_symbol(modulation_type)
% get_bits_per_symbol - 根据调制方式获取每个符号承载的比特数
%
% 输入参数:
%   modulation_type - 调制类型: 'BPSK', 'QPSK', 'QAM16', 'QAM64'
%
% 输出参数:
%   bits_per_symbol - 每个调制符号携带的比特数

switch upper(modulation_type)
    case 'BPSK'
        bits_per_symbol = 1;  % 2^1 = 2点调制
    case 'QPSK'
        bits_per_symbol = 2;  % 2^2 = 4点调制
    case 'QAM16'
        bits_per_symbol = 4;  % 2^4 = 16点调制
    case 'QAM64'
        bits_per_symbol = 6;  % 2^6 = 64点调制
    case 'QAM256'
        bits_per_symbol = 8;  % 2^8 = 256点调制
    otherwise
        error('不支持的调制类型: %s', modulation_type);
end

end 